﻿#include "FITKPHengLEIInitialCondition.h"
#include "FITK_Kernel/FITKEasyParam/FITKParameter.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"

namespace Interface
{
	FITKPHengLEIInitialCondition::FITKPHengLEIInitialCondition()
	{
		_additionalInitialCondition = new Core::FITKParameter;
	}

	FITKPHengLEIInitialCondition::~FITKPHengLEIInitialCondition()
	{
		if (_additionalInitialCondition) delete _additionalInitialCondition;
	}

	Core::FITKParameter * FITKPHengLEIInitialCondition::getInitialConditionAdditionalData()
	{
		return _additionalInitialCondition;
	}

	void FITKPHengLEIInitialCondition::setInitialConditionAdditionalData(Core::FITKParameter * data)
	{
		if (_additionalInitialCondition && _additionalInitialCondition != data) delete _additionalInitialCondition;
		_additionalInitialCondition = data;
	}
}
